<?php
include '../common.php';
include '../common/header.php';
$cc = "SELECT * FROM user WHERE user = 1";
$row_123 = select($cc,$DB);
if($_SESSION['admin'] != $row_123[0]['name']){
    echo "<script> alert('你无权进入');parent.location.href='../main.php'; </script>";
    exit;
}
if (!$_SESSION['admin']) {
	header("location:login.php",302);
}
$cc = "SELECT * FROM config ORDER BY id ASC";
$row_123 = select($cc,$DB);
?>
<link href="<?=$website['public'];?>/admin/user.css" rel="stylesheet" type="text/css" />
<style>
input.input1 {
    width: 300px;
}
</style>
<body>
<form action="../judge/config_if.php" method="post">
    <table width="100%" border="0" cellspacing="0" cellpadding="2" class="table">
    <tr>
        <td colspan="2" class="tabletophearder">网站基本信息设置</td>
    </tr>
    <tr>
       	<td class="tableleft">系统名称:</td>
        <td class="tableright"><input type="text" class="input1" placeholder="<?php echo $row_123[0]['title'] ?>"  value="" name="systemname"  /></span> </td>
    </tr>

    <tr>
        <td class="tableleft">ICP备案号:</td>
        <td class="tableright"><input type="text" class="input1" placeholder="<?php echo $row_123[0]['ICP'] ?>"  value="" name="icp"/></td>
    </tr>   

    <tr>
        <td class="tableleft">版权所有:</td>
        <td class="tableright"><input type="text" class="input1"  placeholder="<?php echo $row_123[0]['copyright'] ?>" value="" name="copyright" /></span></td>
    </tr>

    <tr>
        <td class="tableleft">电话号码:</td>
        <td class="tableright"><input type="tel" class="input1" placeholder="<?php echo $row_123[0]['tel'] ?>"  value="" name="tel" /></span></td>
    </tr>
    
    <tr>
<td>
        <td height="60" align="left">
            <input id="infsubmit" type="submit" class="button" value="确认提交" /> 
        </td>
    </tr>
</table>
</form>
</body>
</html>
